package com.lxy.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@TableName(value = "attr")
public class Attr {

    /** attr id */
    @TableId(value = "attr_id",type = IdType.AUTO)
    @ApiModelProperty(name = "attr id",notes = "")
    private Integer  attrId ;

/*    *//** 创建时间 *//*
    @ApiModelProperty(name = "创建时间",notes = "")
    private Date createTime ;
    *//** 更新时间 *//*
    @ApiModelProperty(name = "更新时间",notes = "")
    private Date updateTime ;*/

    /** 店铺Id */
    @ApiModelProperty(name = "店铺Id",notes = "")
    private int shopId ;
    /** 属性名称 */
    @ApiModelProperty(name = "属性名称",notes = "")
    private String name ;
    /** 属性描述 */
    @ApiModelProperty(name = "属性描述",notes = "")
    private String descr ;
    /** 0:不需要，1:需要 */
    @ApiModelProperty(name = "0:不需要，1:需要",notes = "")
    private Integer searchType ;
    /** 0:销售属性，1:基本属性 */
    @ApiModelProperty(name = "0:销售属性，1:基本属性",notes = "")
    private Integer attrType ;

    @TableField(exist = false)
    @ApiModelProperty(name = "属性值信息")
    List<AttrValue> attrValueList;

    @TableField(exist = false)
    List<Integer> attrValueIDs;
}
